package com.czxy.demo01;

import java.util.Scanner;

public class Test01 {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个整数");
        int a = sc.nextInt();

        if (a%3 == 0 && a%5 == 0 && a%7 == 0){
            System.out.println(a+"能同时被3，5，7整除");
        }else if (a%3 == 0 && a%5 == 0){
            System.out.println(a+"能同时被3，5整除");
        }else if (a%3 == 0 && a%7 == 0){
            System.out.println(a+"能同时被3，7整除");
        }else if (a%5 == 0 && a%7 == 0){
            System.out.println(a+"能同时被5，7整除");
        }else {
            System.out.println("不能被3，5，7任一个数整除");
        }

    }
}
